package sctu.edu.java.year2016.team02.luoxi.day20160523.chapter6_1;

/**
 * Created by С�ɰ���ϣ on 2016/5/23.
 *  ��Ŀ�д���number�࣬�ж��ַ�����mingrikejijavabu���С�i�����ֵĴ���������������
 */
public class Number {
    public static void main(String[] args) {
        String str="mingrikejijavabu";
        int indexMax=str.length(),count=0;
        for(int i=0;i<indexMax;i++){
            if (str.charAt(i) == 'i') count = ++count;
            else count = count;
        }
        System.out.println(str+"\n'i'������"+count+"�Ρ�");
    }
}
